package com.oes.service.impl;

import java.util.List;

import com.oes.dao.AnswerSCPDao;
import com.oes.dao.impl.AnswerSCPDaoImpl;
import com.oes.entity.AnswerSCP;
import com.oes.service.AnswerService;

public class AnswerServiceImpl implements AnswerService{

	public List<AnswerSCP> findAnswerSCP(int spid, int eid) {
		
		AnswerSCPDao ascpd = new AnswerSCPDaoImpl();
		
		return ascpd.findByExam(spid, eid);
	}

	public int UpdateSCP(AnswerSCP aSCP) {
		
		AnswerSCPDao ascpd = new AnswerSCPDaoImpl();
		
		return ascpd.Update(aSCP);
	}

	public int UpdateAnswer(int Aid,int Score) {
		
		AnswerService as = new AnswerServiceImpl();
		
		return as.UpdateAnswer(Aid, Score);
	}
	
}
